﻿@{
    ViewBag.Title = "MyOrder";
    Layout = "~/Views/Shared/_Layout_zone.cshtml";
}

<div class="contentcontainer">
    <div class="headings altheading">
        <h2>我的订单列表</h2>
    </div>
    <div class="contentbox">
        <table width="100%">
            <thead>
                <tr>
                    <th>商品编号</th>
                    <th>订购时间</th>
                    <th>订购数量</th>
                    <th>状态</th>
                    <th>详细</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in (IEnumerable<KnowledgeCommunity.Model.Shop>)ViewData["myTro"]) 
                {
                <tr class="alt">
                    <td>
                            @item.ShapeCode
                        </td>
                        <td>
                            @item.AddTime
                        </td>
                        <td>
                            @item.Count
                        </td>
                        <td>
                            @Enum.GetName(typeof(KnowledgeCommunity.Service.Enum.ShopState),item.State)
                        </td>
                        <td><a href="@Url.Action("Details", "Commodity", new { id = item.C_id })">商品详细</a></td>
                </tr>
                }
            </tbody>
        </table>
        <div style="clear: both;"></div>
    </div>     
</div>
